home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000379_fdc@columbia.edu_Tue Nov 4 09:52:49 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: How do I pass a password in a kermit script
  5. Date: 4 Nov 2003 14:45:14 GMT
  6. Organization: Columbia University
  7. Lines: 51
  8. Message-ID: <slrnbqferq.6oa.fdc@sesame.cc.columbia.edu>
  9. References: <f0bb0f39.0310300922.3c050ba8@posting.google.com> <slrnbq2iv8.oe.fdc@sesame.cc.columbia.edu> <m14qxn4nlk.gnus@usa.net> <bo5o0u$kqm$1@newsmaster.cc.columbia.edu> <f0bb0f39.0311031218.7169c675@posting.google.com> <Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us> <f0bb0f39.0311040516.50768d0a@posting.google.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1067957114 2917 128.59.59.56 (4 Nov 2003 14:45:14 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 4 Nov 2003 14:45:14 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14635
  17.  
  18. In article <f0bb0f39.0311040516.50768d0a@posting.google.com>,
  19. newexpectuser wrote:
  20. : I don't think though that any version of Kermit can automatically
  21. : delete a file it just transfered successfully though ?
  22. :
  23. Something seems to be wrong with our news server.  The original copy of the
  24. following post never showed up...  Anyway, as the the above -- as Jeff said,
  25. yes, of course Kermit can do that.  For much more about Kermit's capabilities
  26. in this area ("atomic file movement" or "transaction processing"), see:
  27.  
  28.   http://www.columbia.edu/kermit/case10.html
  29.  
  30. and (as an ftp client):
  31.  
  32.   http://www.columbia.edu/kermit/ftpscripts.html
  33.  
  34. : Mark Sapiro <msapiro@ccsf.edu> wrote in
  35. : message news:<Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us>...
  36. :> On 3 Nov 2003, newexpectuser wrote:
  37. :> ...
  38. :> I don't know if this helps or not, but this is what I do with C-Kermit
  39. :> 8.0.209 on FreeBSD Unix.
  40. :> 
  41. :> \m(rhost) and \m(rdomain) are set earlier in the script.
  42. :> ...
  43. :> assign pswd1 not
  44. :> assign pswd2 equal
  45. :> while not equal {\m(pswd1)} {\m(pswd2)} {
  46. :>    askq pswd1 {Password for \v(userid) on \m(rhost):}
  47. :>    askq pswd2 {Reenter to confirm:}
  48. :> }
  49. :> set host /pty ssh -e none -l \v(userid) \m(rhost).\m(rdomain)
  50. :> if fail end 1 Unable to connect to \m(rhost).
  51. :> input 20 assword:
  52. :> if fail end 1 No password prompt.
  53. :> output \m(pswd1)\13
  54. :> ...
  55. :> 
  56. :> The input and output statements see the password prompt from ssh
  57. :> and supply the password.  It works in my situation.
  58. :
  59. Right, this would be one way to do it, if it can be done.  But it might also
  60. be the case that an ssh client does not use /dev/tty when prompting for the
  61. password.  If yours does, fine.  If not, scripting the interaction will
  62. be a challenge.
  63.  
  64. In any case, as Jeff says, the scripts in the script library are examples,
  65. samples to be taken as starting points.  Readers have always been welcome to
  66. make contributions.  The invitation still stands.
  67.  
  68. - Frank
  69.